package com.charactereducation.module.vo;

import java.util.Date;

/**
 * Created by zpc on 2017/2/21.
 */
public class WeChatOrderFeedback {

    private Long orderFeedbackId;                   // 主键

    private String orderId;                         // 内部订单号

    private String returnCode;                      // 返回状态码

    private String returnMsg;                       // 返回类型

    private String appid;                           // 公众账号ID

    private String mchId;                           // 商户号

    private String deviceInfo;                      // 设备号

    private String nonceStr;                        // 随机字符串

    private String sign;                            // 签名

    private String resultCode;                      // 业务结果

    private String errCode;                         // 错误代码

    private String errCodeDes;                      // 错误代码描述

    private String tradeType;                       // 交易类型

    private String prepayId;                        // 预支付交易会话标识

    private String codeUrl;                         // 二维码链接

    private Date createTime;                        // 创建时间

    public WeChatOrderFeedback() {
    }

    public Long getOrderFeedbackId() {
        return orderFeedbackId;
    }

    public String getOrderId() {
        return orderId;
    }

    public String getReturnCode() {
        return returnCode;
    }

    public String getReturnMsg() {
        return returnMsg;
    }

    public String getAppid() {
        return appid;
    }

    public String getMchId() {
        return mchId;
    }

    public String getDeviceInfo() {
        return deviceInfo;
    }

    public String getNonceStr() {
        return nonceStr;
    }

    public String getSign() {
        return sign;
    }

    public String getResultCode() {
        return resultCode;
    }

    public String getErrCode() {
        return errCode;
    }

    public String getErrCodeDes() {
        return errCodeDes;
    }

    public String getTradeType() {
        return tradeType;
    }

    public String getPrepayId() {
        return prepayId;
    }

    public String getCodeUrl() {
        return codeUrl;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setOrderFeedbackId(Long orderFeedbackId) {
        this.orderFeedbackId = orderFeedbackId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public void setReturnCode(String returnCode) {
        this.returnCode = returnCode;
    }

    public void setReturnMsg(String returnMsg) {
        this.returnMsg = returnMsg;
    }

    public void setAppid(String appid) {
        this.appid = appid;
    }

    public void setMchId(String mchId) {
        this.mchId = mchId;
    }

    public void setDeviceInfo(String deviceInfo) {
        this.deviceInfo = deviceInfo;
    }

    public void setNonceStr(String nonceStr) {
        this.nonceStr = nonceStr;
    }

    public void setSign(String sign) {
        this.sign = sign;
    }

    public void setResultCode(String resultCode) {
        this.resultCode = resultCode;
    }

    public void setErrCode(String errCode) {
        this.errCode = errCode;
    }

    public void setErrCodeDes(String errCodeDes) {
        this.errCodeDes = errCodeDes;
    }

    public void setTradeType(String tradeType) {
        this.tradeType = tradeType;
    }

    public void setPrepayId(String prepayId) {
        this.prepayId = prepayId;
    }

    public void setCodeUrl(String codeUrl) {
        this.codeUrl = codeUrl;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        WeChatOrderFeedback that = (WeChatOrderFeedback) o;

        if (orderFeedbackId != null ? !orderFeedbackId.equals(that.orderFeedbackId) : that.orderFeedbackId != null)
            return false;
        if (orderId != null ? !orderId.equals(that.orderId) : that.orderId != null) return false;
        if (returnCode != null ? !returnCode.equals(that.returnCode) : that.returnCode != null) return false;
        if (returnMsg != null ? !returnMsg.equals(that.returnMsg) : that.returnMsg != null) return false;
        if (appid != null ? !appid.equals(that.appid) : that.appid != null) return false;
        if (mchId != null ? !mchId.equals(that.mchId) : that.mchId != null) return false;
        if (deviceInfo != null ? !deviceInfo.equals(that.deviceInfo) : that.deviceInfo != null) return false;
        if (nonceStr != null ? !nonceStr.equals(that.nonceStr) : that.nonceStr != null) return false;
        if (sign != null ? !sign.equals(that.sign) : that.sign != null) return false;
        if (resultCode != null ? !resultCode.equals(that.resultCode) : that.resultCode != null) return false;
        if (errCode != null ? !errCode.equals(that.errCode) : that.errCode != null) return false;
        if (errCodeDes != null ? !errCodeDes.equals(that.errCodeDes) : that.errCodeDes != null) return false;
        if (tradeType != null ? !tradeType.equals(that.tradeType) : that.tradeType != null) return false;
        if (prepayId != null ? !prepayId.equals(that.prepayId) : that.prepayId != null) return false;
        if (codeUrl != null ? !codeUrl.equals(that.codeUrl) : that.codeUrl != null) return false;
        return createTime != null ? createTime.equals(that.createTime) : that.createTime == null;

    }

    @Override
    public int hashCode() {
        int result = orderFeedbackId != null ? orderFeedbackId.hashCode() : 0;
        result = 31 * result + (orderId != null ? orderId.hashCode() : 0);
        result = 31 * result + (returnCode != null ? returnCode.hashCode() : 0);
        result = 31 * result + (returnMsg != null ? returnMsg.hashCode() : 0);
        result = 31 * result + (appid != null ? appid.hashCode() : 0);
        result = 31 * result + (mchId != null ? mchId.hashCode() : 0);
        result = 31 * result + (deviceInfo != null ? deviceInfo.hashCode() : 0);
        result = 31 * result + (nonceStr != null ? nonceStr.hashCode() : 0);
        result = 31 * result + (sign != null ? sign.hashCode() : 0);
        result = 31 * result + (resultCode != null ? resultCode.hashCode() : 0);
        result = 31 * result + (errCode != null ? errCode.hashCode() : 0);
        result = 31 * result + (errCodeDes != null ? errCodeDes.hashCode() : 0);
        result = 31 * result + (tradeType != null ? tradeType.hashCode() : 0);
        result = 31 * result + (prepayId != null ? prepayId.hashCode() : 0);
        result = 31 * result + (codeUrl != null ? codeUrl.hashCode() : 0);
        result = 31 * result + (createTime != null ? createTime.hashCode() : 0);
        return result;
    }
}
